package com.runfast.paotui.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.paotui.dao.mapper.ActivityMapper;
import com.runfast.paotui.dao.model.Activity;
import com.runfast.paotui.dao.model.ActivityExample;
import com.runfast.paotui.service.ActivityService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ActivityServiceImpl extends BaseService<Activity, Integer, ActivityExample> implements ActivityService {
    public List<Activity> selectByMapWithPageable(Map<Object,Object> map){
        ActivityMapper activityMapper=(ActivityMapper)this.mapper;
        return activityMapper.selectByMapWithPageable(map);
    }
    public Integer countByMap(Map<Object,Object> map){
        ActivityMapper activityMapper=(ActivityMapper)this.mapper;
        return activityMapper.countByMap(map);
    }
}